from rest_framework import serializers

from goods.models import SKUImage,SKU




#sku图片序列化器
class ImagesSerialzier(serializers.ModelSerializer):
    sku_id=serializers.IntegerField()
    class Meta:
        model=SKUImage
        fields="__all__"

class SKUSerialzier(serializers.ModelSerializer):
    class Meta:
        model=SKU
        fields="__all__"
